<html>
    <head>
        <title>二维码</title>
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    </head>
    <body>
        <div style="text-align: center;margin-top: 10%"><img id="qrcode" src=""></div>
        <script>
            changeQrcode();
            //setInterval('changeQrcode()',30000);
            function changeQrcode(){
                console.log('change');
                document.getElementById('qrcode').setAttribute('src',"/qrcode_png?shop_id={{$shop_id}}&way_type={{$way_type}}"+ '&random=' +Math.random());
            }
        </script>
    </body>
</html>